Create Public Work
Public Works
Create Public Work
POST
Create Public Work
Creates a new public work (obra) with automatic sequential numbering within the fiscal year.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/LizandroCanul/back_sdo/llms.txt
Use this file to discover all available pages before exploring further.
Authentication & Authorization
Headers
Bearer token for authentication with admin role
Must be
application/jsonRequest Body
Fiscal year ID for this obra
Unique key for the obra (max 50 characters). Must be unique across all obras.
Name of the public work (max 255 characters)
Detailed description of the obra (optional)
Department/dependency ID responsible for this obra
Budget amount (must be positive, max 2 decimal places)
Municipality ID where the obra is located
Project type ID (optional)
Work status ID (e.g., planned, in progress, completed)
Array of location objects for this obra (optional)
Municipality ID for this specific location
Street address
Locality reference (optional)
Place reference (optional)
Geometry type:
PUNTO, RUTA, or POLIGONO (optional, defaults to PUNTO)GeoJSON geometry data (optional)
Display order (optional, defaults to 0)
The
numeroObra field is automatically generated based on the fiscal year and does not need to be provided.Response
Returns the created obra object with all related entities populated.Unique identifier for the created obra
Auto-generated sequential number within the fiscal year
Unique key for the obra
Name of the public work
Detailed description
Budget amount
Fiscal year ID
Department ID
Municipality ID
Project type ID
Work status ID
Array of created location objects
Example Request
Example Response
Error Responses
401 Unauthorized
403 Forbidden
400 Bad Request
409 Conflict
claveUnica already exists in the database.